﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace ConsoleApplication_linq
{
    [Serializable]
    class Personne 
    {
        private int id;
        private string nom;
        private string prenom;

        public Personne() { }

        public Personne(int i, string name, string surname)
        {
            id = i;
            nom = name;
            prenom = surname;
        }

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        public string Nom
        {
            get { return nom; }
            set { nom = value; }
        }
        
        public string Prenom
        {
            get { return prenom; }
            set { prenom = value; }
        }

        public override string ToString()
        {
            return id + " " + nom + " " + prenom;
        }
    }
}
